package com.jy.rhin.facade.ws.basic.audit;

import cn.org.chiss.rhin._2015.basic.audit.AuditMessage;

import javax.jws.Oneway;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.xml.ws.RequestWrapper;

import static com.jy.rhin.config.NamespaceConstants.NS_RHIN;

/**
 * @Description: 安全审计webservice接口
 * @Author: lww
 * @Date: 2022/5/20
 */
@WebService(targetNamespace = NS_RHIN, name = "AuditProvider")
public interface AuditProvider {

    /**
     * 审计
     * @param auditMessage
     */
    @WebMethod(operationName = "Audit", action = "Audit")
    @Oneway
    @RequestWrapper(localName = "Audit", targetNamespace = NS_RHIN, className = "cn.org.chiss.rhin._2015.AuditType")
    void audit(
            @WebParam(name = "auditMessage", targetNamespace = NS_RHIN)
                    AuditMessage auditMessage
    );
}
